package timing.ukulele.oss.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * oss组件配置项
 * @author 11697
 */
@Data
@ConfigurationProperties(prefix = "ukulele.oss")
public class OSSProperties {
    /**
     * 默认激活oss组件
     */
    private boolean enabled = true;

    /**
     * 允许上传的文件后缀，为空不限制，例如：.png|.jpg|.gif|.icon|.pdf|.xlsx|.xls|.csv|.mp4|.avi
     */
    private String fileTypeWhiteList="";

    /**
     * 防盗链，允许访问的域名，为空不限制，例如：www.test.com
     */
    private String refererWhiteList="";
    private String url;
    private String accessKey;
    private String secretKey;
    private String bucketName;

    /**
     * 私有桶名称
     */
    private String privateBucketName;
}
